package com.syh.jn.scm.domain.supplier.event.finance;

import com.syh.core.ddd.domain.DomainEvent;
import com.syh.jn.scm.domain.supplier.entity.finance.ReceiptBill;
import com.syh.jn.scm.domain.supplier.entity.finance.StatementAccountBill;

public class ReceiptBillEvent extends DomainEvent<ReceiptBill> {

  public static final String RECEIPT_BILL_LOCK = "receiptBillLock";
  public static final String RECEIPT_BILL_UNLOCK = "receiptBillUnlock";
  public static final String RECEIPT_BILL_CREATED = "receiptBillCreated";
  public static final String RECEIPT_BILL_DESTORY = "receiptBillDestory";

  public static ReceiptBillEvent receiptBillLock(Object[] values) {
    ReceiptBillEvent stateEvent = new ReceiptBillEvent();
    stateEvent.eventName = RECEIPT_BILL_LOCK;
    stateEvent.values = values;
    return stateEvent;
  }

  public static ReceiptBillEvent receiptBillUnlock(Object[] values) {
    ReceiptBillEvent stateEvent = new ReceiptBillEvent();
    stateEvent.eventName = RECEIPT_BILL_UNLOCK;
    stateEvent.values = values;
    return stateEvent;
  }

  public static ReceiptBillEvent receiptBillCreated(Object[] values) {
    ReceiptBillEvent stateEvent = new ReceiptBillEvent();
    stateEvent.eventName = RECEIPT_BILL_CREATED;
    stateEvent.values = values;
    return stateEvent;
  }

  public static ReceiptBillEvent receiptBillDestory(Object[] values) {
    ReceiptBillEvent stateEvent = new ReceiptBillEvent();
    stateEvent.eventName = RECEIPT_BILL_DESTORY;
    stateEvent.values = values;
    return stateEvent;
  }

}
